package cc.openhome;

/**
 * Created by Cai Ye on 2016/3/22.
 */
public class Game3RPG {
    public static void main(String[] args) {
        Game3SwordsMan swordsMan=new Game3SwordsMan();
        swordsMan.setName("Justin");
        swordsMan.setLevel(1);
        swordsMan.setBlood(200);

        Game3Magician magician=new Game3Magician();
        magician.setName("Monica");
        magician.setLevel(1);
        magician.setBlood(100);

        drawFight(swordsMan);
        drawFight(magician);
    }
    static void drawFight(Game3Role role){
        System.out.print(role.getName());
        role.fight();
    }
}
